package me.sealer.ssm.service;

import me.sealer.ssm.model.ShortUrl;

/**
 * @author sealer
 * @date 2017/07/11
 */
public interface ShortUrlService {
    ShortUrl selectByLongUrl(String longUrl);
    ShortUrl selectByShortUrl(String shortUrl);
    void insertOne(ShortUrl shortUrl);
    void updateByLongUrl(ShortUrl shortUrl);
    int selectCountByLongUrl(String longUrl);
    void deleteByLongUrl(String longUrl);
}
